function initDepositBalance() {
	//
	$.ajax({
		url: '/api/init/getDepositBalance',
		data: '',
		dataType: 'json',
		method: 'get',
		success:function(_response) {
			//
			if(_response.isSuccess) {
				$('#depositBalance').html(_response.total);
			}
		},
		error:function(xhr, textStatus) {
			console.log(xhr);
		}
	});
}

function initCurrentMonthBalance() {
	//
	$.ajax({
		url: '/api/init/getCurrentMonthBalance',
		data: '',
		dataType: 'json',
		method: 'get',
		success:function(_response) {
			//
			console.log(_response);
			if(_response.isSuccess) {
				$('#currentMonthBalance').html(_response.total);
			}
		},
		error:function(xhr, textStatus) {
			console.log(xhr);
		}
	});
}

function initCurrentYearIncomeBalance() {
	//
	$.ajax({
		url: '/api/init/getCurrentYearIncomeBalance',
		data: '',
		dataType: 'json',
		method: 'get',
		success:function(_response) {
			//
			if(_response.isSuccess) {
				$('#currentYearIncomeBalance').html(_response.total);
			}
		},
		error:function(xhr, textStatus) {
			console.log(xhr);
		}
	});
}

function initCurrentMothIncomeBalance() {
	//
	$.ajax({
		url: '/api/init/getCurrentMothIncomeBalance',
		data: '',
		dataType: 'json',
		method: 'get',
		success:function(_response) {
			//
			if(_response.isSuccess) {
				$('#currentMothIncomeBalance').html(_response.total);
			}
		},
		error:function(xhr, textStatus) {
			console.log(xhr);
		}
	});
}

function initCurrentMothExpenditureBalance() {
	//
	$.ajax({
		url: '/api/init/getCurrentMothExpenditureBalance',
		data: '',
		dataType: 'json',
		method: 'get',
		success:function(_response) {
			//
			if(_response.isSuccess) {
				$('#currentMothExpenditureBalance').html(_response.total);
			}
		},
		error:function(xhr, textStatus) {
			console.log(xhr);
		}
	});
}

$(function() {
	initDepositBalance();
	initCurrentMonthBalance();
	initCurrentYearIncomeBalance();
	initCurrentMothIncomeBalance();
	initCurrentMothExpenditureBalance();
});